﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace RTracker.Models.Common
{
    /// <summary>
    /// This class is used to get and set values of Status attributes that are used to verify status of request.
    /// </summary>
    public class CStatus
    {


        private bool _bSuccess; // to store status
        private string _strStatusDetails; // to store status details

        public CStatus()
        {
            _bSuccess = false;
            _strStatusDetails = "";

        }
        public CStatus(bool strStatus, string strStatusDetails)
        {
            _bSuccess = strStatus;
            _strStatusDetails = strStatusDetails;

        }

        /// <summary>
        /// Used to store status
        /// </summary>
        public bool Success
        {
            get { return _bSuccess; }
            set { _bSuccess = value; }
        }

        /// <summary>
        /// Used to store status details
        /// </summary>
        public string StatusDetails
        {
            get { return _strStatusDetails; }
            set { _strStatusDetails = value; }
        }
    }
}